package com.kgc.springboot.aviation.pojo;

import java.util.ArrayList;
import java.util.List;

public class LawsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LawsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasIsNull() {
            addCriterion("part_num_alias is null");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasIsNotNull() {
            addCriterion("part_num_alias is not null");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasEqualTo(String value) {
            addCriterion("part_num_alias =", value, "partNumAlias");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasNotEqualTo(String value) {
            addCriterion("part_num_alias <>", value, "partNumAlias");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasGreaterThan(String value) {
            addCriterion("part_num_alias >", value, "partNumAlias");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasGreaterThanOrEqualTo(String value) {
            addCriterion("part_num_alias >=", value, "partNumAlias");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasLessThan(String value) {
            addCriterion("part_num_alias <", value, "partNumAlias");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasLessThanOrEqualTo(String value) {
            addCriterion("part_num_alias <=", value, "partNumAlias");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasLike(String value) {
            addCriterion("part_num_alias like", value, "partNumAlias");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasNotLike(String value) {
            addCriterion("part_num_alias not like", value, "partNumAlias");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasIn(List<String> values) {
            addCriterion("part_num_alias in", values, "partNumAlias");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasNotIn(List<String> values) {
            addCriterion("part_num_alias not in", values, "partNumAlias");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasBetween(String value1, String value2) {
            addCriterion("part_num_alias between", value1, value2, "partNumAlias");
            return (Criteria) this;
        }

        public Criteria andPartNumAliasNotBetween(String value1, String value2) {
            addCriterion("part_num_alias not between", value1, value2, "partNumAlias");
            return (Criteria) this;
        }

        public Criteria andLawsVersionIsNull() {
            addCriterion("laws_version is null");
            return (Criteria) this;
        }

        public Criteria andLawsVersionIsNotNull() {
            addCriterion("laws_version is not null");
            return (Criteria) this;
        }

        public Criteria andLawsVersionEqualTo(String value) {
            addCriterion("laws_version =", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionNotEqualTo(String value) {
            addCriterion("laws_version <>", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionGreaterThan(String value) {
            addCriterion("laws_version >", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionGreaterThanOrEqualTo(String value) {
            addCriterion("laws_version >=", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionLessThan(String value) {
            addCriterion("laws_version <", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionLessThanOrEqualTo(String value) {
            addCriterion("laws_version <=", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionLike(String value) {
            addCriterion("laws_version like", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionNotLike(String value) {
            addCriterion("laws_version not like", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionIn(List<String> values) {
            addCriterion("laws_version in", values, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionNotIn(List<String> values) {
            addCriterion("laws_version not in", values, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionBetween(String value1, String value2) {
            addCriterion("laws_version between", value1, value2, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionNotBetween(String value1, String value2) {
            addCriterion("laws_version not between", value1, value2, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsNameIsNull() {
            addCriterion("laws_name is null");
            return (Criteria) this;
        }

        public Criteria andLawsNameIsNotNull() {
            addCriterion("laws_name is not null");
            return (Criteria) this;
        }

        public Criteria andLawsNameEqualTo(String value) {
            addCriterion("laws_name =", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameNotEqualTo(String value) {
            addCriterion("laws_name <>", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameGreaterThan(String value) {
            addCriterion("laws_name >", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameGreaterThanOrEqualTo(String value) {
            addCriterion("laws_name >=", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameLessThan(String value) {
            addCriterion("laws_name <", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameLessThanOrEqualTo(String value) {
            addCriterion("laws_name <=", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameLike(String value) {
            addCriterion("laws_name like", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameNotLike(String value) {
            addCriterion("laws_name not like", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameIn(List<String> values) {
            addCriterion("laws_name in", values, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameNotIn(List<String> values) {
            addCriterion("laws_name not in", values, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameBetween(String value1, String value2) {
            addCriterion("laws_name between", value1, value2, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameNotBetween(String value1, String value2) {
            addCriterion("laws_name not between", value1, value2, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsIsplayIsNull() {
            addCriterion("laws_isplay is null");
            return (Criteria) this;
        }

        public Criteria andLawsIsplayIsNotNull() {
            addCriterion("laws_isplay is not null");
            return (Criteria) this;
        }

        public Criteria andLawsIsplayEqualTo(Integer value) {
            addCriterion("laws_isplay =", value, "lawsIsplay");
            return (Criteria) this;
        }

        public Criteria andLawsIsplayNotEqualTo(Integer value) {
            addCriterion("laws_isplay <>", value, "lawsIsplay");
            return (Criteria) this;
        }

        public Criteria andLawsIsplayGreaterThan(Integer value) {
            addCriterion("laws_isplay >", value, "lawsIsplay");
            return (Criteria) this;
        }

        public Criteria andLawsIsplayGreaterThanOrEqualTo(Integer value) {
            addCriterion("laws_isplay >=", value, "lawsIsplay");
            return (Criteria) this;
        }

        public Criteria andLawsIsplayLessThan(Integer value) {
            addCriterion("laws_isplay <", value, "lawsIsplay");
            return (Criteria) this;
        }

        public Criteria andLawsIsplayLessThanOrEqualTo(Integer value) {
            addCriterion("laws_isplay <=", value, "lawsIsplay");
            return (Criteria) this;
        }

        public Criteria andLawsIsplayIn(List<Integer> values) {
            addCriterion("laws_isplay in", values, "lawsIsplay");
            return (Criteria) this;
        }

        public Criteria andLawsIsplayNotIn(List<Integer> values) {
            addCriterion("laws_isplay not in", values, "lawsIsplay");
            return (Criteria) this;
        }

        public Criteria andLawsIsplayBetween(Integer value1, Integer value2) {
            addCriterion("laws_isplay between", value1, value2, "lawsIsplay");
            return (Criteria) this;
        }

        public Criteria andLawsIsplayNotBetween(Integer value1, Integer value2) {
            addCriterion("laws_isplay not between", value1, value2, "lawsIsplay");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainIsNull() {
            addCriterion("laws_version_explain is null");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainIsNotNull() {
            addCriterion("laws_version_explain is not null");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainEqualTo(String value) {
            addCriterion("laws_version_explain =", value, "lawsVersionExplain");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainNotEqualTo(String value) {
            addCriterion("laws_version_explain <>", value, "lawsVersionExplain");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainGreaterThan(String value) {
            addCriterion("laws_version_explain >", value, "lawsVersionExplain");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainGreaterThanOrEqualTo(String value) {
            addCriterion("laws_version_explain >=", value, "lawsVersionExplain");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainLessThan(String value) {
            addCriterion("laws_version_explain <", value, "lawsVersionExplain");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainLessThanOrEqualTo(String value) {
            addCriterion("laws_version_explain <=", value, "lawsVersionExplain");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainLike(String value) {
            addCriterion("laws_version_explain like", value, "lawsVersionExplain");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainNotLike(String value) {
            addCriterion("laws_version_explain not like", value, "lawsVersionExplain");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainIn(List<String> values) {
            addCriterion("laws_version_explain in", values, "lawsVersionExplain");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainNotIn(List<String> values) {
            addCriterion("laws_version_explain not in", values, "lawsVersionExplain");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainBetween(String value1, String value2) {
            addCriterion("laws_version_explain between", value1, value2, "lawsVersionExplain");
            return (Criteria) this;
        }

        public Criteria andLawsVersionExplainNotBetween(String value1, String value2) {
            addCriterion("laws_version_explain not between", value1, value2, "lawsVersionExplain");
            return (Criteria) this;
        }

        public Criteria andLawsPictureIsNull() {
            addCriterion("laws_picture is null");
            return (Criteria) this;
        }

        public Criteria andLawsPictureIsNotNull() {
            addCriterion("laws_picture is not null");
            return (Criteria) this;
        }

        public Criteria andLawsPictureEqualTo(String value) {
            addCriterion("laws_picture =", value, "lawsPicture");
            return (Criteria) this;
        }

        public Criteria andLawsPictureNotEqualTo(String value) {
            addCriterion("laws_picture <>", value, "lawsPicture");
            return (Criteria) this;
        }

        public Criteria andLawsPictureGreaterThan(String value) {
            addCriterion("laws_picture >", value, "lawsPicture");
            return (Criteria) this;
        }

        public Criteria andLawsPictureGreaterThanOrEqualTo(String value) {
            addCriterion("laws_picture >=", value, "lawsPicture");
            return (Criteria) this;
        }

        public Criteria andLawsPictureLessThan(String value) {
            addCriterion("laws_picture <", value, "lawsPicture");
            return (Criteria) this;
        }

        public Criteria andLawsPictureLessThanOrEqualTo(String value) {
            addCriterion("laws_picture <=", value, "lawsPicture");
            return (Criteria) this;
        }

        public Criteria andLawsPictureLike(String value) {
            addCriterion("laws_picture like", value, "lawsPicture");
            return (Criteria) this;
        }

        public Criteria andLawsPictureNotLike(String value) {
            addCriterion("laws_picture not like", value, "lawsPicture");
            return (Criteria) this;
        }

        public Criteria andLawsPictureIn(List<String> values) {
            addCriterion("laws_picture in", values, "lawsPicture");
            return (Criteria) this;
        }

        public Criteria andLawsPictureNotIn(List<String> values) {
            addCriterion("laws_picture not in", values, "lawsPicture");
            return (Criteria) this;
        }

        public Criteria andLawsPictureBetween(String value1, String value2) {
            addCriterion("laws_picture between", value1, value2, "lawsPicture");
            return (Criteria) this;
        }

        public Criteria andLawsPictureNotBetween(String value1, String value2) {
            addCriterion("laws_picture not between", value1, value2, "lawsPicture");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameIsNull() {
            addCriterion("laws_pdf_name is null");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameIsNotNull() {
            addCriterion("laws_pdf_name is not null");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameEqualTo(String value) {
            addCriterion("laws_pdf_name =", value, "lawsPdfName");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameNotEqualTo(String value) {
            addCriterion("laws_pdf_name <>", value, "lawsPdfName");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameGreaterThan(String value) {
            addCriterion("laws_pdf_name >", value, "lawsPdfName");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameGreaterThanOrEqualTo(String value) {
            addCriterion("laws_pdf_name >=", value, "lawsPdfName");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameLessThan(String value) {
            addCriterion("laws_pdf_name <", value, "lawsPdfName");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameLessThanOrEqualTo(String value) {
            addCriterion("laws_pdf_name <=", value, "lawsPdfName");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameLike(String value) {
            addCriterion("laws_pdf_name like", value, "lawsPdfName");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameNotLike(String value) {
            addCriterion("laws_pdf_name not like", value, "lawsPdfName");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameIn(List<String> values) {
            addCriterion("laws_pdf_name in", values, "lawsPdfName");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameNotIn(List<String> values) {
            addCriterion("laws_pdf_name not in", values, "lawsPdfName");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameBetween(String value1, String value2) {
            addCriterion("laws_pdf_name between", value1, value2, "lawsPdfName");
            return (Criteria) this;
        }

        public Criteria andLawsPdfNameNotBetween(String value1, String value2) {
            addCriterion("laws_pdf_name not between", value1, value2, "lawsPdfName");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadIsNull() {
            addCriterion("laws_pdf_download is null");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadIsNotNull() {
            addCriterion("laws_pdf_download is not null");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadEqualTo(String value) {
            addCriterion("laws_pdf_download =", value, "lawsPdfDownload");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadNotEqualTo(String value) {
            addCriterion("laws_pdf_download <>", value, "lawsPdfDownload");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadGreaterThan(String value) {
            addCriterion("laws_pdf_download >", value, "lawsPdfDownload");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadGreaterThanOrEqualTo(String value) {
            addCriterion("laws_pdf_download >=", value, "lawsPdfDownload");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadLessThan(String value) {
            addCriterion("laws_pdf_download <", value, "lawsPdfDownload");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadLessThanOrEqualTo(String value) {
            addCriterion("laws_pdf_download <=", value, "lawsPdfDownload");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadLike(String value) {
            addCriterion("laws_pdf_download like", value, "lawsPdfDownload");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadNotLike(String value) {
            addCriterion("laws_pdf_download not like", value, "lawsPdfDownload");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadIn(List<String> values) {
            addCriterion("laws_pdf_download in", values, "lawsPdfDownload");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadNotIn(List<String> values) {
            addCriterion("laws_pdf_download not in", values, "lawsPdfDownload");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadBetween(String value1, String value2) {
            addCriterion("laws_pdf_download between", value1, value2, "lawsPdfDownload");
            return (Criteria) this;
        }

        public Criteria andLawsPdfDownloadNotBetween(String value1, String value2) {
            addCriterion("laws_pdf_download not between", value1, value2, "lawsPdfDownload");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcIsNull() {
            addCriterion("laws_pdf_filesrc is null");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcIsNotNull() {
            addCriterion("laws_pdf_filesrc is not null");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcEqualTo(String value) {
            addCriterion("laws_pdf_filesrc =", value, "lawsPdfFilesrc");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcNotEqualTo(String value) {
            addCriterion("laws_pdf_filesrc <>", value, "lawsPdfFilesrc");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcGreaterThan(String value) {
            addCriterion("laws_pdf_filesrc >", value, "lawsPdfFilesrc");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcGreaterThanOrEqualTo(String value) {
            addCriterion("laws_pdf_filesrc >=", value, "lawsPdfFilesrc");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcLessThan(String value) {
            addCriterion("laws_pdf_filesrc <", value, "lawsPdfFilesrc");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcLessThanOrEqualTo(String value) {
            addCriterion("laws_pdf_filesrc <=", value, "lawsPdfFilesrc");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcLike(String value) {
            addCriterion("laws_pdf_filesrc like", value, "lawsPdfFilesrc");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcNotLike(String value) {
            addCriterion("laws_pdf_filesrc not like", value, "lawsPdfFilesrc");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcIn(List<String> values) {
            addCriterion("laws_pdf_filesrc in", values, "lawsPdfFilesrc");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcNotIn(List<String> values) {
            addCriterion("laws_pdf_filesrc not in", values, "lawsPdfFilesrc");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcBetween(String value1, String value2) {
            addCriterion("laws_pdf_filesrc between", value1, value2, "lawsPdfFilesrc");
            return (Criteria) this;
        }

        public Criteria andLawsPdfFilesrcNotBetween(String value1, String value2) {
            addCriterion("laws_pdf_filesrc not between", value1, value2, "lawsPdfFilesrc");
            return (Criteria) this;
        }

        public Criteria andLevelIsNull() {
            addCriterion("level is null");
            return (Criteria) this;
        }

        public Criteria andLevelIsNotNull() {
            addCriterion("level is not null");
            return (Criteria) this;
        }

        public Criteria andLevelEqualTo(Integer value) {
            addCriterion("level =", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotEqualTo(Integer value) {
            addCriterion("level <>", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThan(Integer value) {
            addCriterion("level >", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("level >=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThan(Integer value) {
            addCriterion("level <", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThanOrEqualTo(Integer value) {
            addCriterion("level <=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelIn(List<Integer> values) {
            addCriterion("level in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotIn(List<Integer> values) {
            addCriterion("level not in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelBetween(Integer value1, Integer value2) {
            addCriterion("level between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("level not between", value1, value2, "level");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}